import {getBaseChartConfig, barData} from '@/package/widget/chart/01base/util'

export default {
  name: '基础折线图',
  icon: '/img/chart/line1.png',
  type: '折线图',
  cptKey: 'line01',
  width: 500,
  height: 300,
  dynamic: true,
  options: {
    cptDataForm: {
      dataText: JSON.stringify(barData),
      dataSource: 1,
      pollTime: 0
    },
    attribute: {
      ...getBaseChartConfig(),
      series: {
        smooth: false,
        showSymbol: true,
        symbolSize: 4,
        symbol: 'emptyCircle',
        label: {
          show: false,
          position: 'top',
          formatter: '{a}:{c}',
          color: '#FFF',
          fontSize: 12
        },
        lineStyle: {
          width: 2,
          type: 'solid',
          shadowBlur: 0,
          shadowOffsetX: 0,
          shadowOffsetY: 0,
          opacity: 1
        },
        itemStyle: {
          shadowBlur: 0,
          shadowOffsetX: 0,
          shadowOffsetY: 0,
          opacity: 1
        },
        areaStyleShow: false,
        areaStyle: {
          shadowBlur: 0,
          shadowOffsetX: 0,
          shadowOffsetY: 0,
          opacity: 1
        }
      }
    }
  }
}
